package com.jbinfo.qingcaowan.studyManager.entity;

import java.io.Serializable;
import java.util.Date;
/**
 * 
* @ClassName: CycleDetail 
* @Description: TODO
* @author ZhangLei
* @date 2016年7月11日 上午10:26:33
 */
public class CycleDetail implements Serializable{
    /** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = 368572938341209284L;

	private String id;

    private String mainId;

    private Date taskDate;

    private String taskName;

    private Integer taskOrder;
    
    private Integer taskTime;

    private Date gmtCreate;

    private String createUser;

    private Date gmtModified;

    private String modifiedUser;

    private String validateFlag;

    private String remarks;
    
    // 书籍总的阅读天数
    private Integer cycleDate;
    
    private String bookId;
    
    private String bookName;

    private String bookImg;

    private String words;

    private String chapter;

    private String price;

    private Integer type;

    private String press;
    
    private String author;
    
    // 卡片内容
    private String detailId;
    private String chapterName;
    private String chapterContent;
    private String cardName;
    private String cardImg; // 卡片图片
    
    // 学习计划中的书籍列表
    private String cycleMonth;  // 学习计划中的月份
    private String minTaskDate; // 书籍的最小任务日期
    private String maxTaskDate; // 书籍的最大任务日期
    
    private String preReadTime; // 预测阅读时间（分钟）
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId == null ? null : mainId.trim();
    }

    public Date getTaskDate() {
        return taskDate;
    }

    public void setTaskDate(Date taskDate) {
        this.taskDate = taskDate;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName == null ? null : taskName.trim();
    }

    public Integer getTaskOrder() {
        return taskOrder;
    }

    public void setTaskOrder(Integer taskOrder) {
        this.taskOrder = taskOrder;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getModifiedUser() {
        return modifiedUser;
    }

    public void setModifiedUser(String modifiedUser) {
        this.modifiedUser = modifiedUser == null ? null : modifiedUser.trim();
    }

    public String getValidateFlag() {
        return validateFlag;
    }

    public void setValidateFlag(String validateFlag) {
        this.validateFlag = validateFlag == null ? null : validateFlag.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }


	public Integer getCycleDate() {
		return cycleDate; 
	}

	public void setCycleDate(Integer cycleDate) {
		this.cycleDate = cycleDate;
	}

	public String getBookId() {
		return bookId;
	}

	public void setBookId(String bookId) {
		this.bookId = bookId;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getBookImg() {
		return bookImg;
	}

	public void setBookImg(String bookImg) {
		this.bookImg = bookImg;
	}

	public String getWords() {
		return words;
	}

	public void setWords(String words) {
		this.words = words;
	}

	public String getChapter() {
		return chapter;
	}

	public void setChapter(String chapter) {
		this.chapter = chapter;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getPress() {
		return press;
	}

	public void setPress(String press) {
		this.press = press;
	}

	public Integer getTaskTime() {
		return taskTime;
	}

	public void setTaskTime(Integer taskTime) {
		this.taskTime = taskTime;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getDetailId() {
		return detailId;
	}

	public void setDetailId(String detailId) {
		this.detailId = detailId;
	}

	public String getChapterName() {
		return chapterName;
	}

	public void setChapterName(String chapterName) {
		this.chapterName = chapterName;
	}

	public String getChapterContent() {
		return chapterContent;
	}

	public void setChapterContent(String chapterContent) {
		this.chapterContent = chapterContent;
	}

	public String getCardName() {
		return cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName;
	}

	public String getCardImg() {
		return cardImg;
	}

	public void setCardImg(String cardImg) {
		this.cardImg = cardImg;
	}

	public String getCycleMonth() {
		return cycleMonth;
	}

	public void setCycleMonth(String cycleMonth) {
		this.cycleMonth = cycleMonth;
	}

	public String getMinTaskDate() {
		return minTaskDate;
	}

	public void setMinTaskDate(String minTaskDate) {
		this.minTaskDate = minTaskDate;
	}

	public String getMaxTaskDate() {
		return maxTaskDate;
	}

	public void setMaxTaskDate(String maxTaskDate) {
		this.maxTaskDate = maxTaskDate;
	}


	public String getPreReadTime() {
		return preReadTime;
	}

	public void setPreReadTime(String preReadTime) {
		this.preReadTime = preReadTime;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((author == null) ? 0 : author.hashCode());
		result = prime * result + ((bookImg == null) ? 0 : bookImg.hashCode());
		result = prime * result + ((bookName == null) ? 0 : bookName.hashCode());
		result = prime * result + ((chapter == null) ? 0 : chapter.hashCode());
		result = prime * result + ((createUser == null) ? 0 : createUser.hashCode());
		result = prime * result + ((cycleDate == null) ? 0 : cycleDate.hashCode());
		result = prime * result + ((gmtCreate == null) ? 0 : gmtCreate.hashCode());
		result = prime * result + ((gmtModified == null) ? 0 : gmtModified.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((mainId == null) ? 0 : mainId.hashCode());
		result = prime * result + ((modifiedUser == null) ? 0 : modifiedUser.hashCode());
		result = prime * result + ((press == null) ? 0 : press.hashCode());
		result = prime * result + ((price == null) ? 0 : price.hashCode());
		result = prime * result + ((remarks == null) ? 0 : remarks.hashCode());
		result = prime * result + ((taskDate == null) ? 0 : taskDate.hashCode());
		result = prime * result + ((taskName == null) ? 0 : taskName.hashCode());
		result = prime * result + ((taskOrder == null) ? 0 : taskOrder.hashCode());
		result = prime * result + ((taskTime == null) ? 0 : taskTime.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		result = prime * result + ((validateFlag == null) ? 0 : validateFlag.hashCode());
		result = prime * result + ((words == null) ? 0 : words.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CycleDetail other = (CycleDetail) obj;
		if (author == null) {
			if (other.author != null)
				return false;
		} else if (!author.equals(other.author))
			return false;
		if (bookImg == null) {
			if (other.bookImg != null)
				return false;
		} else if (!bookImg.equals(other.bookImg))
			return false;
		if (bookName == null) {
			if (other.bookName != null)
				return false;
		} else if (!bookName.equals(other.bookName))
			return false;
		if (chapter == null) {
			if (other.chapter != null)
				return false;
		} else if (!chapter.equals(other.chapter))
			return false;
		if (createUser == null) {
			if (other.createUser != null)
				return false;
		} else if (!createUser.equals(other.createUser))
			return false;
		if (cycleDate == null) {
			if (other.cycleDate != null)
				return false;
		} else if (!cycleDate.equals(other.cycleDate))
			return false;
		if (gmtCreate == null) {
			if (other.gmtCreate != null)
				return false;
		} else if (!gmtCreate.equals(other.gmtCreate))
			return false;
		if (gmtModified == null) {
			if (other.gmtModified != null)
				return false;
		} else if (!gmtModified.equals(other.gmtModified))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (mainId == null) {
			if (other.mainId != null)
				return false;
		} else if (!mainId.equals(other.mainId))
			return false;
		if (modifiedUser == null) {
			if (other.modifiedUser != null)
				return false;
		} else if (!modifiedUser.equals(other.modifiedUser))
			return false;
		if (press == null) {
			if (other.press != null)
				return false;
		} else if (!press.equals(other.press))
			return false;
		if (price == null) {
			if (other.price != null)
				return false;
		} else if (!price.equals(other.price))
			return false;
		if (remarks == null) {
			if (other.remarks != null)
				return false;
		} else if (!remarks.equals(other.remarks))
			return false;
		if (taskDate == null) {
			if (other.taskDate != null)
				return false;
		} else if (!taskDate.equals(other.taskDate))
			return false;
		if (taskName == null) {
			if (other.taskName != null)
				return false;
		} else if (!taskName.equals(other.taskName))
			return false;
		if (taskOrder == null) {
			if (other.taskOrder != null)
				return false;
		} else if (!taskOrder.equals(other.taskOrder))
			return false;
		if (taskTime == null) {
			if (other.taskTime != null)
				return false;
		} else if (!taskTime.equals(other.taskTime))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		if (validateFlag == null) {
			if (other.validateFlag != null)
				return false;
		} else if (!validateFlag.equals(other.validateFlag))
			return false;
		if (words == null) {
			if (other.words != null)
				return false;
		} else if (!words.equals(other.words))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "CycleDetail [id=" + id + ", mainId=" + mainId + ", taskDate=" + taskDate + ", taskName=" + taskName
				+ ", taskOrder=" + taskOrder + ", taskTime=" + taskTime + ", gmtCreate=" + gmtCreate + ", createUser="
				+ createUser + ", gmtModified=" + gmtModified + ", modifiedUser=" + modifiedUser + ", validateFlag="
				+ validateFlag + ", remarks=" + remarks + ", cycleDate=" + cycleDate + ", bookId=" + bookId
				+ ", bookName=" + bookName + ", bookImg=" + bookImg + ", words=" + words + ", chapter=" + chapter
				+ ", price=" + price + ", type=" + type + ", press=" + press + ", author=" + author + ", detailId="
				+ detailId + ", chapterName=" + chapterName + ", chapterContent=" + chapterContent + ", cardName="
				+ cardName + ", cardImg=" + cardImg + ", cycleMonth=" + cycleMonth + ", minTaskDate=" + minTaskDate
				+ ", maxTaskDate=" + maxTaskDate + ", preReadTime=" + preReadTime + "]";
	}


    
}